<div class="blog_list">
    <div class="left">
    	<div class="menu">
    		<div class="main_menu">
    			<a href="http://<?=HOST?>/blog">
    				所有分类
    		    </a>
    		    <?php if($classID == -1){?>
        		<img class="menu_img" alt="" src="<?=STATIC_PATH?>Image/menu_select.png">
        		<?php }?>
    		</div>
    	</div>
    	<?php foreach ($class as $key=>$value){ if(!$value['subClass'])continue;?>
    	<div class="menu">
    		<div class="main_menu">
    			<a href="http://<?=HOST?>/blog/list/pid/<?=$key?>">
    		        <?=$value['name']?>
    		    </a>
    		    <?php if($classID == $key){?>
        		<img class="menu_img" alt="" src="<?=STATIC_PATH?>Image/menu_select.png">
        		<?php }?>
    		</div>
    		<div id="sub_menu_wrapper_<?=$key?>" class="sub_menu_wrapper">
    			<?php foreach ($value['subClass'] as $subClass){?>
        		<div class="sub_menu">
        		    <a href="http://<?=HOST?>/blog/list/cid/<?=$subClass['class_id']?>">
        		        <?=$subClass['class_name']?>
        		    </a>
        		    <?php if($classID == $subClass['class_id']){?>
        		    <img class="menu_img" alt="" src="<?=STATIC_PATH?>Image/menu_select.png">
        		    <?php }?>
        		</div>
        		<?php }?>
    		</div>
    	</div>
    	<?php } ?>
    </div>
    <div class="right">
    	<?php if(!$articles){?>
    	<div>此分类下暂无文章，请尝试其他分类</div>
    	<?php }else{
    	    foreach ($articles as $article){?>
    	<div class="title_list">
           <div class="title">
               <a target="_blank" href="http://<?=HOST?>/blog/detail/id/<?=$article['article_id']?>"><?=$article['article_title']?></a>
           </div>
           <!-- <div class="info">
                   <span><?php //Web_Model_Common::getFormatTime($article['article_time'])?></span>
                   <span>类别:<?=$article['article_main_class_name']?>-><?=$article['article_sub_class_name']?></span>
                   <span>作者:<?=$article['article_author_name']?></span>
               </div> -->
    	</div>
    	<?php }?>
    	<div class="page">
    		<span><a href="http://<?=HOST?>/blog/list/page/<?=$pageNav['firstPage'] . $classURL?>">[首页]</a></span>
    		<span><a href="http://<?=HOST?>/blog/list/page/<?=$pageNav['prePage'] . $classURL?>">[上一页]</a></span>
    		<?php foreach ($pageNav['pageList'] as $pageNum){
    			  if($pageNum != $pageNav['nowPage']){ 
    		?>
    		<span>
    		<a href="http://<?=HOST?>/blog/list/page/<?=$pageNum . $classURL?>">[<?=$pageNum?>]</a>
    		</span>
    		<?php }else{ ?>
    		<span><?=$pageNum?></span>
    		<?php }}?>
    		<span><a href="http://<?=HOST?>/blog/list/page/<?=$pageNav['nextPage'] . $classURL?>">[下一页]</a></span>
    		<span><a href="http://<?=HOST?>/blog/list/page/<?=$pageNav['lastPage'] . $classURL?>">[尾页]</a></span>
    	</div>
    	<?php }?>
    </div>
</div>